@extends('admin.layout')
@section('content')

<!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <div id="breadcrumbs" class="breadcrumbs">
            <ol class="breadcrumb">
            <li><a href="javascript:void();"><i class="fa fa-home"></i>&nbsp;&nbsp;后台首页</a></li>
                    
                    <li><a href="javascript:void();">会员管理</a></li>    
                    <li><a href="javascript:void();">添加等级</a></li>          
            </ol>
        </div>

        <section class="content ">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a data-original-title="返回" class="btn btn-default" title="" data-toggle="tooltip" href="javascript:history.go(-1)"><i class="fa fa-reply"></i></a>
                <a onclick="get_help(this)" data-url="http://www.tp-shop.cn/Doc/Index/article/id/1005/developer/user.html" class="btn btn-default" href="javascript:;"><i class="fa fa-question-circle"></i> 帮助</a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 添加会员等级</h3>
                </div>
                <div class="panel-body ">   
                    <!--表单数据-->
                    <form action="/index.php/Admin/User/levelHandle" id="handleposition" method="post">                    
                        <!--通用信息-->
                    <div class="tab-content col-md-10">                       
                        <div id="tab_tongyong" class="tab-pane active">                           
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td class="col-sm-2">等级名称：</td>
                                    <td class="col-sm-4">
                                        <input type="text" value="" name="level_name" class="form-control">
                                        <span style="color:#F00; display:none;" id="err_attr_name"></span>                                        
                                    </td>
                                    <td class="col-sm-4">设置会员等级名称
                                    </td>
                                </tr>  
                                <tr>
                                    <td>消费额度：</td>
                                    <td>
                                        <input type="text" value="" name="amount" class="form-control">
                                    </td>
                                    <td class="col-sm-4">设置会员等级所需要的消费额度</td>
                                </tr>
                                <tr>
                                    <td>折扣率：</td>
                                    <td>
                                        <input type="text" value="" name="discount" class="form-control">     
                                    </td>
                                    <td class="col-sm-4">折扣率单位为百分比，如输入90，表示该会员等级的用户可以以商品原价的90%购买</td>
                                </tr>  
                                <tr>
                                    <td>等级描述：</td>
                                    <td>
                                        <textarea name="describe" cols="30" rows="5"></textarea>
                                    </td>
                                    <td class="col-sm-4">会员等级描述信息</td>
                                </tr>                              
                                </tbody> 
                                <tfoot>
                                    <tr>
                                    <td><input type="hidden" value="add" name="act">
                                        <input type="hidden" value="" name="level_id">
                                    </td>
                                    <td class="col-sm-4"></td>
                                    <td class="text-right"><input type="buuton" value="保存" onclick="adsubmit()" class="btn btn-primary"></td></tr>
                                </tfoot>                               
                                </table>
                        </div>                           
                    </div>              
                    <input type="hidden" value="9c2fb78e0f6dd01d67d0f2f2681144e8_f059b68239c36e3b9c613e958332fd1b" name="__hash__"></form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
    </div><!-- /.content-wrapper -->

@endsection